package com.ruicar.afs.cloud.afscase.risk.service.impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.afscase.risk.entity.CaseTortoiseExposureExcept;
import com.ruicar.afs.cloud.afscase.risk.mapper.CaseTortoiseExposureExceptMapper;
import com.ruicar.afs.cloud.afscase.risk.service.CaseTortoiseExposureExceptService;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author Peng Jinbo
 * @Date 2020/09/11 16:43
 */
@Service
public class CaseTortoiseExposureExceptServiceImpl extends ServiceImpl<CaseTortoiseExposureExceptMapper, CaseTortoiseExposureExcept>
    implements CaseTortoiseExposureExceptService{
    @Override
    public boolean exists(String companyName) {
        return StrUtil.isBlank(companyName) ? true : baseMapper.existsCount(companyName) > 0;
    }
}
